Repository navigation
Conversation
Signed-off-by: Kong Liangyu <201232322+yumingjs@users.noreply.github.com>
EmiRZx
approved these changes
Dec 3, 2026
EmiRZx
left a comment
There was a problem hiding this comment.
tested binary HTTP reads and structured writes. Application/JSON and APPLICATION/VND.API+JSON bodies now decode to objects. Application/vnd.api+JSON; profile=Example and TEXT/JSON are written as JSON objects. re.ASCII keeps application/jſon out, as on main. the new tests fail on main.
one case still misses. application/json ; charset=utf-8 writes the data as a string because the pattern has no room for whitespace before ;. that could be a follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #340
A binary payload labeled
Application/JSONcomes back as a string. A structured event labeledApplication/vnd.api+JSON; profile=Examplesimilarly turns an object into a string when written.Match JSON media types case-insensitively within ASCII in the core formatter. The original
datacontenttypeand its parameter values are preserved. This leaves binding mode detection and the v1 converters unchanged.The regression cases exercise structured writes and binary reads. Both failed against the unmodified formatter.
pytest tests— 891 passed, 18 expected failures.